IsProtectedSystemFile

Prototype:

function IsProtectedSystemFile(const Filename: String): Boolean;

Description:

Returns True if the specified file is protected by Windows File Protection (and therefore can't be replaced).